<template>
   
        <div>
           <h1>test3</h1>
            <img src="../../img/didian.png">
            <button @click="goToPage">前往页面test2</button>
        </div>
    
</template>

<script>

export default {
    name:'test3',
    props:{
        componentParam:{
            type:Object,
            default:()=>{}
        },
    },
    components:{
     
    },
    mixins:[],
    data(){
        return{
           
        }
    },
    created(){
        console.log(this.componentParam)
    },
    methods:{
        goToPage(){
            this.$emit('changePage', {
                name: 'test2',
                componentParam:  {a:"test3"} 
            })
        }

        
        
    },
    
}

</script>

<style scoped>
 
</style>